#include<bits/stdc++.h>
using namespace std;
int main(){
	freopen("title.in" , "r" , stdin);
	freopen("title.out" , "w" , stdout);
	string title;
	getline(cin , title);
	int sum = 0;
	for(size_t i = 0 ; i < title.length() ; i++){
		if(title[i] >= 'a' && title[i] <= 'z'){
			sum = sum + 1;
		}
		if(title[i] >= 'A' && title[i] <= 'Z'){
			sum = sum + 1;
		}
		if(title[i] >= '0' && title[i] <= '9'){
			sum = sum + 1;
		}
	}
	cout << sum << endl;
	return 0;
}